package com.xykj.enterprise.wechat.ext.service.identity;

import com.xykj.enterprise.wechat.bean.ext.identity.AccessToken;
import com.xykj.enterprise.wechat.bean.ext.identity.JsapiTicketRsp;
import com.xykj.enterprise.wechat.bean.ext.identity.SuiteAccessToken;

/**
 * @Author zhouxu
 * @create 2021-04-02 16:11
 */
public interface IdentityService {

    SuiteAccessToken getSuiteAccessToken(String suiteId, String suiteSecret, String suiteTicket);

    AccessToken getCorpToken(String authCorpId, String permanentCode, String suitAccessToken);

    //获取应用的jsapi_ticket
    JsapiTicketRsp getAgentJsapiTicket(String accessToken);

    //获取企业的jsapi_ticket
    JsapiTicketRsp getCorpJsapiTicket(String accessToken);
}
